package c.h.a.k0.a.j0;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import c.h.a.m0.h;
import c.h.a.y.a;
import com.liuzh.deviceinfo.view.GrayBoxView;

/* compiled from: ScreenGrayTestFragment */
public class p extends a {
    public GrayBoxView W;

    public void E(Bundle bundle) {
        super.E(bundle);
        ActionBar t = ((AppCompatActivity) Y()).t();
        if (t != null) {
            t.f();
        }
        if (!m0()) {
            h.g(Y());
        }
    }

    public View G(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        if (this.W == null) {
            GrayBoxView grayBoxView = new GrayBoxView(layoutInflater.getContext());
            this.W = grayBoxView;
            grayBoxView.setCount(16);
            this.W.setFocusable(true);
            this.W.requestFocus();
            this.W.setOnClickListener(new c(this));
            this.W.post(new d(this));
        }
        return this.W;
    }

    public void q0(boolean z) {
        if (!m0()) {
            h.g(Y());
        }
    }
}
